<%@ page import="domain.Product" %><%--
  Created by IntelliJ IDEA.
  User: 老头
  Date: 2023/4/27
  Time: 22:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setCharacterEncoding("UTF-8");
    response.setCharacterEncoding("UTF-8");
%>
<jsp:useBean id = "product" class = "domain.Product" scope="page"></jsp:useBean>
<jsp:setProperty name="product"  property="*"/>

<%

    product.add(product);

    response.sendRedirect(request.getContextPath()+"/admin/login/home.jsp?item=product_list");
%>
</body>
</html>
